home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / BMP2BGI1.ZIP / BMP.H < prev    next >
C/C++ Source or Header  |  1991-06-02  |  2KB  |  41 lines

  1. //////////////////////////////////////////////////////////////////////////
  2. // BMP.H: Header File
  3. //////////////////////////////////////////////////////////////////////////
  4.  
  5.  
  6.  
  7. typedef struct tagBITMAPFILEHEADER
  8. {
  9.         unsigned int  bfType;                   // "BM" or 0x4D42
  10.         unsigned long bfSize;                   // Size of file in bytes
  11.         unsigned int  bfReserved1;              // Set to 0
  12.         unsigned int  bfReserved2;              // Set to 0
  13.         unsigned long bfOffBits;                // Offset in file where
  14.                                                 // the bits begin
  15. } BITMAPFILEHEADER;
  16.  
  17. typedef struct tagBITMAPINFOHEADER
  18. {
  19.         unsigned long biSize;                   // Size of the structure
  20.         unsigned long biWidth;                  // Width in pixels
  21.         unsigned long biHeight;                 // Height in pixels
  22.         unsigned int  biPlanes;                 // # of color Planes: Set to 1
  23.         unsigned int  biBitCount;               // Color bits per pixel
  24.         unsigned long biCompression;            // Compression Scheme
  25.         unsigned long biSizeImage;              // Number of bitmap bytes
  26.         unsigned long biXPelsPerMeter;          // Horizontal Resolution
  27.         unsigned long biYPelsPerMeter;          // Vertical Resolution
  28.         unsigned long biClrUsed;                // Number of colors used
  29.         unsigned long biClrImportant;           // Important colors
  30.  
  31. } BITMAPINFOHEADER;
  32.  
  33. #ifndef BMP_OK
  34. #define BMP_OK -1
  35. #define BMP_BadDriver 0
  36. #define BMP_TooBig 1
  37. #define BMP_WrongVideo 2
  38. #define BMP_Compression 3
  39. #endif
  40.  
  41.